package com.job.structureType.combination;

/**
 * @Author 王博
 * @DateTime 2025-06-17 08:34
 */
public abstract class MenuComponent {
    private String name;
    private Integer level;

    MenuComponent(String name, Integer level) {
        this.name = name;
        this.level = level;
    }

    public void addComponent(MenuComponent component) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void removeComponent(MenuComponent component) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public abstract void print();

    public String getName() {
        return name;
    }

    public Integer getLevel() {
        return level;
    }
}
